﻿using Ewell.BizComponent.UI.Core.VievModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.BizComponent.UI.OutSetl.ViewModel
{
    /// <summary>
    /// 处方项
    /// </summary>
    public class PresItemVm:ViewModelBase
    {
        /// <summary>
        /// 处方项ID
        /// </summary>
        private string _presItemId;

        public string presItemId
        {
            get => _presItemId;
            set
            {
                if (_presItemId != value)
                {
                    _presItemId = value;
                    OnPropertyChanged(nameof(presItemId));
                }
            }
        }

        /// <summary>
        /// 处方项名称
        /// </summary>
        private string _presItemName;

        public string presItemName
        {
            get => _presItemName;
            set
            {
                if (_presItemName != value)
                {
                    _presItemName = value;
                    OnPropertyChanged(nameof(presItemName));
                }
            }
        }

        /// <summary>
        /// 处方项原价
        /// </summary>
        private decimal _originalPrice;

        public decimal originalPrice
        {
            get => _originalPrice;
            set
            {
                if (_originalPrice != value)
                {
                    _originalPrice = value;
                    OnPropertyChanged(nameof(originalPrice));
                }
            }
        }

        /// <summary>
        /// 处方项销售单价
        /// </summary>
        private decimal _retailPrice;

        public decimal retailPrice
        {
            get => _retailPrice;
            set
            {
                if (_retailPrice != value)
                {
                    _retailPrice = value;
                    OnPropertyChanged(nameof(retailPrice));
                }
            }
        }

        /// <summary>
        /// 处方项数量
        /// </summary>
        private decimal _quality;

        public decimal quality
        {
            get => _quality;
            set
            {
                if (_quality != value)
                {
                    _quality = value;
                    OnPropertyChanged(nameof(quality));
                }
            }
        }

        /// <summary>
        /// 处方项原始金额
        /// </summary>
        private decimal _originalAmount;

        public decimal originalAmount
        {
            get => _originalAmount;
            set
            {
                if (_originalAmount != value)
                {
                    _originalAmount = value;
                    OnPropertyChanged(nameof(originalAmount));
                }
            }
        }

        /// <summary>
        /// 处方项销售金额
        /// </summary>
        private decimal _payAmount;

        public decimal payAmount
        {
            get => _payAmount;
            set
            {
                if (_payAmount != value)
                {
                    _payAmount = value;
                    OnPropertyChanged(nameof(payAmount));
                }
            }
        }

        /// <summary>
        /// 处方明细标识集合
        /// </summary>
        private List<string> _presDetailIds;

        public List<string> presDetailIds
        {
            get => _presDetailIds;
            set
            {
                if (_presDetailIds != value)
                {
                    _presDetailIds = value;
                    OnPropertyChanged(nameof(presDetailIds));
                }
            }
        }

    }
}
